using UnityEngine;
using System.Collections;

//Handles the timer text message
public class TimerScript : MonoBehaviour {
	
	tk2dTextMesh textMesh;
	public GameManager game;
	
	//the message to display with the countdown timer
	private string countDownMessage = "Hurry! Veru is leaving in: ";	
	// Use this for initialization
	void Start () {
		textMesh = gameObject.GetComponent<tk2dTextMesh>();		
	}
	
	// Update is called once per frame
	void Update () {
		//textMesh.text = countDownMessage + getGameTime();
		//textMesh.Commit();
	}
	
	//returns the game time in a pretty clock-like string
	string getGameTime() {
		int time = (int)game.GameTimeRemaining;
		
		int minutes = time/60;
		int seconds = time % 60;
		return (minutes + ": " + seconds);
	}
	
}
